package com.bw.gmall.service.impl;

import com.bw.gmall.domain.Pro;
import com.bw.gmall.mapper.ProductMapper;
import com.bw.gmall.service.IProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Service
public class ProductServiceImpl implements IProductService {

    @Resource
    ProductMapper productMapper;

    @Override
    public BigDecimal getGmv(Integer date) {
        return productMapper.queryGmv(date);
    }

    @Override
    public List<Pro> getGmvByProvice(Integer date) {
        return productMapper.queryGmvByProvice(date);
    }
}
